package com.shangxia.spr.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shangxia.spr.mapper.dao.Attribute;

import java.util.List;

/**
 * @author zhouya38158
 * @date 2021/11/17 21:20
 * @apiNote
 */
public interface QueryWrapperByColumn<T> extends IService<T> {

    default List<T> listAllByColumn(String column, Integer npcCode) {
        QueryWrapper<T> queryWrapper = new QueryWrapper();
        queryWrapper.eq(column, npcCode);
        return list(queryWrapper);
    }

}
